// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_REWORK_STATION
// * CreateDate    : 2011-10-25 10:44:41
// * Creater       : CodeSmith
// * LastChangeDate: 2011-10-25 10:44:41
// * LastChanger   : 2011-10-25 10:44:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class ProdReworkStationEntity : EntityBase
    {
        public ProdReworkStationTable TableSchema
        {
            get
            {
                return ProdReworkStationTable.Current;
            }
		}
		
		public ProdReworkStationEntity()
        {

        }
		
		public ProdReworkStationEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReworkStationId = Convert.ToString(CommonFunctions.ToObject(dr["REWORK_STATION_ID"]));
			this.QualityCheckingId = Convert.ToString(CommonFunctions.ToObject(dr["QUALITY_CHECKING_ID"]));
			this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
        }
		
		public ProdReworkStationEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReworkStationId = Convert.ToString(CommonFunctions.ToObject(dr["REWORK_STATION_ID"]));
			this.QualityCheckingId = Convert.ToString(CommonFunctions.ToObject(dr["QUALITY_CHECKING_ID"]));
			this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdReworkStationTable.Current;
            }
        }
		
		#region Perporty List
        public string ReworkStationId
        {
            get { return Convert.ToString(GetData(ProdReworkStationTable.C_REWORK_STATION_ID)); }
            set { SetData(ProdReworkStationTable.C_REWORK_STATION_ID, value); }
        }
		
        public string QualityCheckingId
        {
            get { return Convert.ToString(GetData(ProdReworkStationTable.C_QUALITY_CHECKING_ID)); }
            set { SetData(ProdReworkStationTable.C_QUALITY_CHECKING_ID, value); }
        }
		
        public string TechnicId
        {
            get { return Convert.ToString(GetData(ProdReworkStationTable.C_TECHNIC_ID)); }
            set { SetData(ProdReworkStationTable.C_TECHNIC_ID, value); }
        }
		
		#endregion
	}
	
	
}	

